///
/// This custom method is an event handler for the insert event in the Data Access layer.
///
private void Audit_Insert(object sender, System.ComponentModel.CancelEventArgs e)
{
/// You can modify the following sample code to fit specific need
// string s;
// s = (this.${Audit Field} + "Inserted by: " + BaseClasses.Utils.SecurityControls.GetCurrentUserName() + " on " + DateTime.Now.ToString() + ".").Trim();
// this.${Audit Field} = s;
// Set values of other fields.
// this.UserName= "loggedInUser";
}
|